<!--
* @description  
* @fileName  MVVM模型
* @author zhoujunlin
* @date 2022-02-03 14:40:29
* @version V1.0.0
!-->
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>MVVM模型</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <!-- view -->
    <div id="app">
        <h1>姓名：{{name}}</h1>
        <h1>地址：{{addr}}</h1>
        <!-- vm中的属性均可以使用 -->
        {{_c}} <br>
        {{$attrs}}<br>
        {{$options}}
    </div>

    <script>
        Vue.config.productionTip = false
        // view model
        var vm = new Vue({
            el: '#app',
            data() {
                // model
                return {
                    name:'zhoujl',
                    addr:'上海'
                }
            }
        });
        console.log(vm);
    </script>
</body>

</html>